from django.db import models
from django.contrib.auth.models import User

class UserProfile(models.Model):
    user = models.OneToOneField(User)
    location = models.CharField(max_length = 30)
    name = models.CharField(max_length = 50)
    def __unicode__(self):
        return self.user.username
